package com.tgpms.web.pipenet.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.IdType;

/**
 * <p>
 * 管网app 部件表
 * </p>
 *
 * @author newway
 * @since 2020-10-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("APP_IN_PARTS")
@ApiModel(value="AppInParts对象", description="管网app 部件表")
public class AppInParts implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "ID" , type = IdType.INPUT)
    private String id;

    @ApiModelProperty(value = "部件所属公司编码")
    @TableField(value = "COMPANY")
    private String company;

    @ApiModelProperty(value = "位置信息")
    @TableField(value = "LOCATION_STREET")
    private String locationStreet;

    @ApiModelProperty(value = "位置信息-经度")
    @TableField(value = "LOCATION_LONGTITUDE")
    private String locationLongtitude;

    @ApiModelProperty(value = "位置信息-纬度")
    @TableField(value = "LOCATION_LATITUDE")
    private String locationLatitude;

    @ApiModelProperty(value = "二维码")
    @TableField(value = "QR_CODE")
    private String qrCode;

    @ApiModelProperty(value = "逻辑删除标记（0：有效；1：删除）")
    @TableField(value = "STATUS")
    @TableLogic(value="0",delval="1")//mybatisplus逻辑删除标记（0：有效；1：删除）
    private Integer status;

    @ApiModelProperty(value = "插入人")
    @TableField(value = "INSERT_USER")
    private String insertUser;

    @ApiModelProperty(value = "插入时间")
    @TableField(value = "INSERT_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime insertDate;

    @ApiModelProperty(value = "修改人")
    @TableField(value = "MODIFY_USER")
    private String modifyUser;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "MODIFY_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime modifyDate;

    @ApiModelProperty(value = "指定用户")
    @TableField(value = "TO_USERS")
    private String toUsers;

    @ApiModelProperty(value = "指定用户组")
    @TableField(value = "TO_GROUPS")
    private String toGroups;

    @ApiModelProperty(value = "数据拥有者")
    @TableField(value = "DATA_OWNER")
    private String dataOwner;


}